package com.example.oldguy;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;


@Slf4j
@SpringBootApplication
public class FlowableModelerDemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext application =   SpringApplication.run(FlowableModelerDemoApplication.class, args);
        Environment env = application.getEnvironment();
        String port = env.getProperty("server.port");
        String path = env.getProperty("server.servlet.context-path");
        log.info("\n----------------------------------------------------------\n\t" +
                "Application unicom-Boot is running! Access URLs:\n\t" +
                "流程设计器地址: \t\thttp://127.0.0.1:" + port + path + "\n\t" +
                "流程设计器地址: \t\thttp://127.0.0.1:" + port + path + "/doc.html\n\t" +
                "----------------------------------------------------------");
    }

}
